package com.wwm.springcloud.userservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@EnableEurekaClient
@EnableDiscoveryClient
@SpringBootApplication
public class UserApplication
{
    public static void main(String[] args)
    {
        String[] vars = new String[args.length + 1];
        System.arraycopy(args, 0, vars, 0, args.length);
        vars[vars.length - 1] = "--spring.application.index=" + System.currentTimeMillis();
        SpringApplication.run(UserApplication.class, args);
    }
}
